package runner

var GitClone = &vcsCmd{
	name:   "Git",
	cmd:    "git",
	cmds:   []string{"clone -b {TAG} {REMOTE_URL}"},
	scheme: []string{"git", "https", "http", "git+ssh", "ssh"},
}

var FaasBuild = &vcsCmd{
	name:   "Faas",
	cmd:    "/home/app/faas-cli-cc",
	cmds:   []string{"build -f {BUILD_FILE_YML}"},
	scheme: []string{"http"},
}

var LoginDocker = &vcsCmd{
	name:   "Docker",
	cmd:    "docker",
	cmds:   []string{"-H {DOCKER_HOST} login --password {DOCKER_HUB_PWD} --username {DOCKER_HUB_USER} harbor.junengcloud.com"},
	scheme: []string{},
}

var DockerPush = &vcsCmd{
	name:   "Docker",
	cmd:    "docker",
	cmds:   []string{"-H {DOCKER_HOST} push {IMAGE_NAME}:{TAG}"},
	scheme: []string{},
}

var FaasLogin = &vcsCmd{
	name: "Faas",
	cmd:  "/home/app/faas-cli-cc",
	cmds: []string{
		"login -u admin -p {OPENFAAS_PWD}",
	},
	scheme: []string{"http"},
}

var FaasDeploy = &vcsCmd{
	name: "Faas",
	cmd:  "/home/app/faas-cli-cc",
	cmds: []string{
		"deploy -f {BUILD_FILE_YML}",
	},
	scheme: []string{"http"},
}

var Pwd = &vcsCmd{
	name:   "System",
	cmd:    "pwd",
	cmds:   []string{},
	scheme: []string{},
}
